
<%= link_to("<< Back to List", {:action => 'index'}, :class => 'back-link') %>

<div class="faq edit">
  <h2>Edit FAQ</h2>

  <%= form_for(:faq, :url => {:action => 'update', :id => @faq.id}) do |f| %>
  
    <table summary="Subject form fields">
      <tr>
        <th>Question</th>
        <td><%= f.text_field(:question) %></td>
      </tr>
      <tr>
        <th>Answer</th>
        <td><%= f.text_field(:answer) %></td>
      </tr>
    </table>
    
    <div class="form-buttons">
      <%= submit_tag("Update FAQ") %>
    </div>
    
  <% end %>
</div>
